package com.logic.landseaserver.persistence.read;

import java.util.List;

import com.logic.landseaserver.domain.ChangeRoomRecord;

public interface ChangeRoomRecordReadMapper {

    ChangeRoomRecord selectByPrimaryKey(Integer id);
    
    /**
     * 
     * [简要描述]：根据用户ID和原始合同ID查询换房记录</br>
     * [详细描述]：</br>
     * [作者]：Aaron(2017-12-13)</br>
     *
     * @return
     *
     */
    ChangeRoomRecord selectByUserAndContract(ChangeRoomRecord changeRoomRecord);

    /**
     * 
     * [简要描述]：查询用户是否存在跨店换房记录</br>
     * [详细描述]：在特定的门店内</br>
     * [作者]：Aaron(2017-12-18)</br>
     *
     * @param changeRoomRecord
     * @return
     *
     */
    List<ChangeRoomRecord> selectByUserProjectNotSame(ChangeRoomRecord changeRoomRecord);
}